package com.soft.hwx.scdapp.msg;
//探测结构上报回馈
/*
搜索状态 跟踪                 45°  45°   搜索  载频1 带宽 重复1 脉宽1    45°  45°  搜索  载频2 带宽  重复2 脉宽2    45°   45° 搜索  载频3  带宽 重复3 脉宽3    频综     H1R相位差   H2R相位差   H3R相位差   H4R相位差   V1R相位差   V2R相位差   V3R相位差   V4R相位差   H21校准值   H31校准值   H41校准值   V21校准值   V31校准值   V41校准值    H幅度      V幅度       分选脉冲 目标序号 定 定位时刻    经度  纬度  高度   指北  倾角                                                 校验和
01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
55 AA 9C B3 03 01 00 00 00 01 c8 af c8 af 03 03 f4 01 01 00 4d 01 05 00 01 c8 af c8 af 03 03 f4 01 01 00 4d 01 05 00 01 c8 af c8 af 03 03 f4 01 01 00 4d 01 05 00 01 D0 07 01 01 00 00 00 01 00 00 00 01 00 00 00 01 00 00 00 01 00 00 00 01 00 00 00 01 00 00 00 01 00 00 00 01 00 00 00 01 00 00 00 01 00 00 00 01 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 02 03 11 08 00 00 00 76 00 20 00 09 00 E8 03 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 9e
* */

public class HostSearchRspMsg extends RawMsg {
    private  byte result;
    private  byte status;

    private  int sendCount;
    private  byte tartgetNum;

    private short t1PitchAngle;  //目标1  俯仰角
    private short t1Azimuth;      //目标1   方位角
    private short t1WorkingSystem; //目标1   工作体制
    private short t1CarrierFrequency;  //目标1   载频
    private short t1BandWidth;         // 目标1  带宽
    private short t1RepetitionPeriod ;         // 目标1  重复周期
    private short t1PulseWidth  ;         // 目标1  脉宽
    private byte t1Range  ;         // 目标1  幅度

    private short t2PitchAngle ;  //目标1  俯仰角
    private short t2Azimuth;      //目标1   方位角
    private short t2WorkingSystem; //目标1   工作体制
    private short t2CarrierFrequency;  //目标1   载频
    private short t2BandWidth;         // 目标1  带宽
    private short t2RepetitionPeriod ;         // 目标1  重复周期
    private short t2PulseWidth  ;         // 目标1  脉宽
    private byte t2Range  ;         // 目标1  幅度

    private short t3PitchAngle ;  //目标1  俯仰角
    private short t3Azimuth;      //目标1   方位角
    private short t3WorkingSystem; //目标1   工作体制
    private short t3CarrierFrequency;  //目标1   载频
    private short t3BandWidth;         // 目标1  带宽
    private short t3RepetitionPeriod ;         // 目标1  重复周期
    private short t3PulseWidth  ;         // 目标1  脉宽
    private byte t3Range  ;         // 目标1  幅度

    private short frequencySynthesizerSettingalue   ;         // 频综设定值
    private short channelttenuation   ;         // 信道衰减


    private int h1rPhaseDifference   ;         // H1R相位差
    private int h2rPhaseDifference   ;         // H1R相位差
    private int h3rPhaseDifference   ;         // H1R相位差
    private int h4rPhaseDifference   ;         // H1R相位差

    private int v1rPhaseDifference   ;         // V1R相位差
    private int v2rPhaseDifference   ;         // V1R相位差
    private int v3rPhaseDifference   ;         // V1R相位差
    private int v4rPhaseDifference   ;         // V1R相位差

    private int h21CalibrationValue   ;         // H21校准值
    private int h31CalibrationValue   ;         // H21校准值
    private int h41CalibrationValue   ;         // H21校准值

    private int v21CalibrationValue   ;         // V21校准值
    private int v31CalibrationValue   ;         // V31校准值
    private int v41CalibrationValue   ;         // V41校准值

    private byte h1Range  ;         // H1  幅度
    private byte h2Range  ;         // H2  幅度
    private byte h3Range  ;         // H3  幅度
    private byte h4Range  ;         // H4  幅度

    private byte v1Range  ;         // V1  幅度
    private byte v2Range  ;         // V2  幅度
    private byte v3Range  ;         // V3  幅度
    private byte v4Range  ;         // V4  幅度

    private byte t1NumberSortingPulses;// 目标1分选脉冲数
    private byte t2NumberSortingPulses;// 目标2分选脉冲数
    private byte t3NumberSortingPulses;// 目标3分选脉冲数


    private byte t1Sn;   //目标1 序号
    private byte t2Sn;   //目标2 序号
    private byte t3Sn;   //目标2 序号

    private byte  positioningState;//  定位状态
        /*
        0：未定位未指北
        01已定位未指北
        10：已指北未定位
        11：已定位已指北
        */

    private byte  positioningTHour;//  定位时刻 时
    private byte  positioningTMinute;//  定位时刻 时
    private byte  positioningTSecond;//  定位时刻 时
    private byte  positioningTMs;//  定位时刻 时

    private short  longitude;//  当前经度
    private short  latitude;//  当前纬度
    private short  height;//  当前高度
    private short  northPointing ;//当前指北角度
    private short  inclinationAngle; // 当前倾斜角度

    public byte getStatus(){
        return status;
    }

    public byte getResult(){
        return result;
    }


    public  HostSearchRspMsg(RawMsg msg){
            Copy(msg);
            result = msg.buf[3];
            status = msg.buf[4];
    }

}
